﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Ins_Plan_1 : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Ins_Plan_1", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Ins_Plan_1", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Ins_Plan_1", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Ins_Plan_1", "UserName");

        [Column]
        public int Sheets { get { return _Sheets; } set { _Sheets = value; EntityState.FieldChange("Sheets"); } }
        private int _Sheets;
        public static FieldInfo sheets = new FieldInfo("mdc_Ins_Plan_1", "Sheets");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Ins_Plan_1", "No");

        [Column]
        public string Material_Code { get { return _Material_Code; } set { _Material_Code = value; EntityState.FieldChange("Material_Code"); } }
        private string _Material_Code;
        public static FieldInfo material_code = new FieldInfo("mdc_Ins_Plan_1", "Material_Code");

        [Column]
        public string Plant { get { return _Plant; } set { _Plant = value; EntityState.FieldChange("Plant"); } }
        private string _Plant;
        public static FieldInfo plant = new FieldInfo("mdc_Ins_Plan_1", "Plant");

        [Column]
        public string Material_Description { get { return _Material_Description; } set { _Material_Description = value; EntityState.FieldChange("Material_Description"); } }
        private string _Material_Description;
        public static FieldInfo material_description = new FieldInfo("mdc_Ins_Plan_1", "Material_Description");

        [Column]
        public string IP_Group { get { return _IP_Group; } set { _IP_Group = value; EntityState.FieldChange("IP_Group"); } }
        private string _IP_Group;
        public static FieldInfo ip_group = new FieldInfo("mdc_Ins_Plan_1", "IP_Group");

        [Column]
        public string Group_Counter { get { return _Group_Counter; } set { _Group_Counter = value; EntityState.FieldChange("Group_Counter"); } }
        private string _Group_Counter;
        public static FieldInfo group_counter = new FieldInfo("mdc_Ins_Plan_1", "Group_Counter");

        [Column]
        public string InsPlan_Status { get { return _InsPlan_Status; } set { _InsPlan_Status = value; EntityState.FieldChange("InsPlan_Status"); } }
        private string _InsPlan_Status;
        public static FieldInfo insplan_status = new FieldInfo("mdc_Ins_Plan_1", "InsPlan_Status");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Ins_Plan_1", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Ins_Plan_1", "Status");
    }
}
